package com.hyy.blogtest.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class AddBlogRequest {

    @NotNull(message = "id不能为空")
    private Integer userId;

    @Length(max=60,message = "标题字数不能超过60个字")
    @NotBlank(message="标题不能为空")
    private String title;

    @NotBlank(message = "内容不能为空")
    private String content;
}
